<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11复仇者联盟</title>
    <style>
        html{
            perspective: 800px;
        }
        .cube{
            width: 200px;
            height: 200px;
            /* background-color: aqua; */
            margin: 100px auto;
            transform-style: preserve-3d;
            animation: run 9s infinite linear;
            
        }
        .cube>div{
            width: 200px;
            height: 200px;
            /* 设置透明效果 */
            opacity: 0.7;
            position: absolute;
        }
        img{
            vertical-align: top;
        }
        .img1{
            transform: rotateY(180deg) translateZ(100px);
        }
        .img2{
            transform: rotateY(-90deg) translateZ(100px);
        }
        .img3{
            transform: rotateY(90deg) translateZ(100px);
        }
        .img4{
            transform: rotateY(0deg) translateZ(100px);
        }
        .img5{
            transform: rotateX(90deg) translateZ(100px);
        }
        .img6{
            transform: rotateX(-90deg) translateZ(100px);
        }
        @keyframes run {
            from{
                transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
            }
            to{
                transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
            }
            
        }
    </style>
</head>
<body>
    <div class="cube">
        <div class="img1"><img src="./resource/1.jpg" alt=""></div>
        <div class="img2"><img src="./resource/2.jpg" alt=""></div>
        <div class="img3"><img src="./resource/3.jpg" alt=""></div>
        <div class="img4"><img src="./resource/4.jpg" alt=""></div>
        <div class="img5"><img src="./resource/5.jpg" alt=""></div>
        <div class="img6"><img src="./resource/6.jpg" alt=""></div>
    </div>
</body>
</html>